package com.gmy.eduservice.controller;


import com.gmy.commonutils.Result;
import org.springframework.web.bind.annotation.*;

/**
 * @version 1.0
 * @Description:
 * @Author 6
 * @Date 2021/8/28 16:18
 */
@RestController
@RequestMapping("/eduservice/user")
@CrossOrigin
public class EduLoginController {

    // login   fan hui token
    @PostMapping("/login")
    public Result login(){
        return Result.ok().data("token","admin");
    }

    // info
    @GetMapping("/info")
    public Result info(){
        return Result.ok().data("roles","[admin]").data("avatar","https://img-blog.csdnimg.cn/4a74d651cea74ab28fcf5190da3da0f7.png?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBA5aSn5ZyG5a2Q5ZWK,size_20,color_FFFFFF,t_70,g_se,x_16#pic_center")
                .data("name","admin");
    }
}
